FAQ汇萃 >> Tomcat >> 如何在 SERVLET 引擎里设置 init 参数? [查看别人的评论]

由 webmaster 发布于: 2001-01-30 10:02

Red face

It depends on the servlet engine. Each has its own type of config file in which you can set the names and values of init parameters; these get passed to the servlets (or JSPs) via the getInitParameter() call.

For Tomcat and JSWDK, edit the conf/web.xml file.


由 webmaster 发布于: 2001-01-30 10:03

Look for the resin.conf file in your Resin1.1/conf directory. It's a typical XML based configuration file that has sample of how to set servlet init and application parameters.


由 webmaster 发布于: 2001-01-30 10:03

Java Web Server : We can set the init parameter in JWS by specifying the initArgs property for the concerned servlet in HOME/properties/server/javawebserver/webpageservice directory.

点这里对该文章发表评论

该文章总得分是 0 分,你认为它对你有帮助吗? [非常多](0) [有一些](0) [无帮助](0) [是灌水](0)

Copyright © 2001 - 2009 JSP001.com . All Rights Reserved